package top.haijunit.work.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 【说明类功能】
 *
 * @author zhanghaijun
 * @since 2024-09-20
 */
@Controller
public class PageController {

    @GetMapping("/login")
    public ModelAndView login() {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("login");
        return mv;
    }

    @GetMapping("/socket")
    public ModelAndView socket() {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("socket");
        return mv;
    }
}
